package com.shen.GOF.bridge;

public class Computer {
    //组合而不使用继承
    private Brand brand;

    public Computer(Brand brand) {
        this.brand = brand;
    }

    public void info(){
        brand.info();//自带品牌
    }

}
